package controller

type BaseController struct {
	ActionMap map[string]ActionHandler
}

func (c *BaseController) Mapping(key string, value ActionHandler) {
	if c.ActionMap == nil {
		c.ActionMap = make(map[string]ActionHandler)
	}
	c.ActionMap[key] = value
}
